home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Hot Mix 17
/
Hot Mix 17.iso
/
HM17_SGI
/
.bin
/
awkzilla.awk
next >
Wrap
Text File
|
1997-07-25
|
2KB
|
31 lines
###########################################################################
# awkzilla.awk - file to get Netscape 3.0's prefs to the cd. #
# #
# invoke it with: #
# #
# $HOTMIXDIR/.bin/nawk -f $HOTMIXDIR/.bin/awkzilla.awk \ #
# $HOME/.netscape/preferences > $HOME/.netscape/preferehm17 #
# #
# This is an awk script. Well nawk really. We should place nawk on the #
# CD just to be sure this functions. #
###########################################################################
{
gsub(/SHOW_TOOLBAR:.*/, "SHOW_TOOLBAR:\t\t" "True" )
gsub(/SHOW_URL:.*/, "SHOW_URL:\t\t" "False" )
gsub(/SHOW_DIRECTORY_BUTTONS:.*/, "SHOW_DIRECTORY_BUTTONS:\t" "False" )
gsub(/SHOW_MENBAR:.*/, "SHOW_MENUBAR:\t\t" "True" )
gsub(/AUTOLOAD_IMAGES:.*/, "AUTOLOAD_IMAGES:\t" "True" )
gsub(/EMAIL_ADDRESS:.*/, "EMAIL_ADDRESS:\t\t" ENVIRON["USERNAME"]"\@" ENVIRON["HOSTNAME"]"." ENVIRON["DOMAINNAME"])
gsub(/HOME_DOCUMENT:.*/, "HOME_DOCUMENT:\t\t" "file\:" ENVIRON["HOTMIXDIR"] "\/html\/index.html" )
gsub(/BOOKMARKS_FILE:.*/, "BOOKMARKS_FILE:\t\t" "~\/.netscape\/bookmarks_hm17.html" )
gsub(/HISTORY_FILE:.*/, "HISTORY_FILE:\t\t" "~\/.netscape\/history_hm17.db" )
gsub(/PERSONAL_MIME_TYPES:.*/, "PERSONAL_MIME_TYPES:\t" ENVIRON["HOTMIXDIR"] "\/.bin\/netscape\/mime.types.hm17")
gsub(/PERSONAL_MAILCAP:.*/, "PERSONAL_MAILCAP:\t" ENVIRON["HOTMIXDIR"] "\/.bin\/netscape\/mailcap.hm17")
gsub(/DISABLE_JAVA:.*/, "DISABLE_JAVA:\t\t" "False")
gsub(/DISABLE_JAVASCRIPT:.*/, "DISABLE_JAVASCRIPT:\t" "False")
print $0
}